package com.yonyou.pmclouds.plan.mapper;

import com.yonyou.pmclouds.basecom.dao.BaseMapper;
import com.yonyou.pmclouds.plan.entity.ScheduleItemVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ScheduleItemMapper extends BaseMapper<ScheduleItemVO> {

    List<ScheduleItemVO> queryByPkRoots(@Param("pkRoots")String[] pkRoots);

    List<ScheduleItemVO> queryByPkItems(@Param("pkItems")String[] pkItems);

    List<ScheduleItemVO> queryByPkSchedules(@Param("pkSchedules")String[] pkSchedules);


    //通过最初版本主键查询所有版本主键
    String[] queryPksByPkOriginal(@Param("pkOriginal")String pkOriginal);

    ScheduleItemVO[] queryByProjectAndRelatedBillType(@Param("pkProject") String pkProject, @Param("billTypes") List<String> billTypes);

    List<ScheduleItemVO> queryByProjectAndDependPlan(@Param("pkProject") String pkProject, @Param("dependPlans") String[] dependPlans);

    ScheduleItemVO[] queryChildPlanByParents(@Param("pkParents") String[] pkParents);
}
